package research.domain;

import java.util.Set;

import research.entity.Entity;
import research.entity.EntityType;

public final class Parameter extends Entity {
	private String name;
	private String description;
	private String units;
	private double low;
	private double high;
	private Calander calander;
	private Set<ParameterValue> parameterValues;
	private Set<DefaultParameterValue> defaultParameterValues;

	public Parameter() {
		super(EntityType.Parameter);
	}

	@Override
	public String getDisplayName() {
		return this.getName();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getUnits() {
		return units;
	}

	public void setUnits(String units) {
		this.units = units;
	}

	public Calander getCalander() {
		return calander;
	}

	public void setCalander(Calander calander) {
		this.calander = calander;
	}

	public Set<ParameterValue> getParameterValues() {
		return parameterValues;
	}

	public void setParameterValues(Set<ParameterValue> parameter_values) {
		this.parameterValues = parameter_values;
	}
	
	public Set<DefaultParameterValue> getDefaultParameterValues() {
		return defaultParameterValues;
	}

	public void setDefaultParameterValues(
			Set<DefaultParameterValue> defaultParameterValues) {
		this.defaultParameterValues = defaultParameterValues;
	}

	public double getLow() {
		return low;
	}

	public void setLow(double low) {
		this.low = low;
	}

	public double getHigh() {
		return high;
	}

	public void setHigh(double high) {
		this.high = high;
	}

	public static Parameter getNew() {
		Parameter p = new Parameter();
		p.setName("");
		p.setDescription("");
		p.setUnits("");
		return p;
	}
}
